/** 
 * 查看 资源包
*/
<template>
    <vp-dialog :span="4" ref="dialogRef">    
        <template #title>
            <vp-label zh="查看" en="View" align="left"/>
        </template>
        <materialResoursePackage ref="commonRef" :id="id" :type="type"></materialResoursePackage>
        <!-- <template #footer>
            <vp-btn-submit :loading="saveLoading" @click="handleSave"/>
        </template> -->
    </vp-dialog>
</template>

<script setup lang="ts" name="ViewMaterialResoursePackage">
import { defineAsyncComponent, defineExpose, ref } from 'vue'
import request from '/@/utils/request';

const materialResoursePackage = defineAsyncComponent(() => import('./materialResoursePackage.vue'));

const emits = defineEmits<{
    (e: 'formSubmited'): void
}>()

const dialogRef = ref();
const type = ref('view');
const id = ref('');
const saveLoading = ref(false);

const commonRef = ref();

const handleOpen = (_type: string, _id: string)=>{
    id.value = _id;
    type.value = _type;
    dialogRef.value.handleOpen();
}

defineExpose({
    handleOpen
})
</script>
<style scoped lang="scss">

</style>
